import Vue from 'vue'
import Router from 'vue-router'
import VueResource from 'vue-resource';

//客户管理
import  message from 'components/HLCustomer/CustomerInfo'
import  mine from 'components/HLCustomer/Contacts'

//合同管理
import  hetong from 'components/hetong/hetong'
import  chanpin from 'components/chanpin/chanpin'

Vue.use(Router)
Vue.use(VueResource);

export default new Router({
  routes: [
    {
      path: '/HLCustomer/CustomerInfo',
      name: '客户信息',
      component: CustomerInfo
    },
    {
      path: '/HLCustomer/Contacts',
      name: '我的联系人',
      component: Contacts
    },
    { path: '/hetong',
      component: hetong ,
      children: [
        {
          path: '/message',
          name: '合同基本信息',
          component: message
        },
        {
          path: '/mine',
          name: '设备匹配',
          component: mine
        },
        {
          path: '/mine',
          name: '发货信息',
          component: mine
        }
      ]},
    { path: '/chanpin',
      component: chanpin,
      children: [
        {
          path: '/message',
          name: '产品信息',
          component: message
        },
        {
          path: '/mine',
          name: '质检',
          component: mine
        }
      ] }
  ]
})
export default router;